﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace BingWallpaper.Models.Entitys
{
    public class BaseEntity
    {
        public BaseEntity()
        {
            this.IsDeleted = false;
            this.Sort = 0;
            this.CreateTime = DateTime.Now;
            this.UpdateTime = DateTime.Now;
        }

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] //设置主键
        public int Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateUserId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public int UpdateUserId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }


        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }

    }
}
